<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <script type="text/javascript" src="../public/scripts//validation.js"/>
        <link rel="stylesheet" href="../public/media/stylesheet/style1.css" type="text/css" title="vika_style"/>
        <link rel="alternate stylesheet" href="../public/media/stylesheet/style2.css" type="text/css" title="cill_style"/>
        <title>Photo World::Register</title>
    </head>

    <body>
        <div id="wrapper">
            <div id="header">
                <h1 id="header_title"></h1>
            </div>

            <div id="content_wrapper">
                <div id="nav_menu">
                    <ul>
                        <li><a href="album.xhtml">Home</a></li>
                        <li><a href="register.xhtml">Registration</a></li>
                        <li><a href="upload.xhtml">Upload</a></li>
                        <li><a href="album.xhtml">Album</a></li>
                    </ul>
                </div>

                <div id="content">
                    <form id="registration_form" action="" onsubmit="return validateSubmission(this.id)">
                        <fieldset>
                        <legend>Registration Information</legend>

                        <div class="row">
                        <label for="name" accesskey="n">Name </label>
                        <input type="text" id="name" name="name" onchange="validateForm('registration_form', this.id)"/><br/>
                        <span id="name_validation"></span>
                        </div>

                        <div class="row">
                        <label for="username" accesskey="u">Username </label>
                        <input type="text" id="username" name="username" onchange="validateForm('registration_form', this.id)"/><br/>
                        <span id="username_validation"></span>
                        </div>

                        <div class="row">
                        <label for="password" accesskey="p">Password </label>
                        <input type="password" id="password" name="password" onchange="validateForm('registration_form', this.id)"/><br/>
                        <span id="password_validation"></span>
                        </div>

                        <div class="row">
                        <label for="repassword" accesskey="r">Retype Password </label>
                        <input type="password" id="repassword" name="repassword" onchange="validateForm('registration_form', this.id)"/><br/>
                        <span id="repassword_validation"></span>
                        </div>

                        <div class="row">
                        <label for="birthdate" accesskey="b">Birthdate </label>
                        <input type="text" id="birthdate" name="birthdate" onchange="validateForm('registration_form', this.id)" onclick="makeTable(true, null, null, this.id)"/><br/>
                        <div id="calendarPopup">
                            <table id="calendarPopupTable">
                                <tr>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <span id="birthdate_validation"></span>
                        </div>

                        <div class="row">
                        <label for="email" accesskey="e">E-mail </label>
                        <input type="text" id="email" name="email" onchange="validateForm('registration_form', this.id)"/><br/>
                        <span id="email_validation"></span>
                        </div>

                        <div class="row">
                        <label for="photo" accesskey="h">Photo </label>
                        <input type="file" id="photo" name="photo" onchange="validateForm('registration_form', this.id)"/><br/>
                        <span id="photo_validation"></span>
                        </div>

                        <div class="row">
                        <label for="gender" accesskey="g">Gender </label>
                        <select id="gender" name="gender">
                            <option value="male">L</option>
                            <option value="female">P</option>
                        </select>
                        </div>

                        <div class="row">
                        <label for="location" accesskey="l">Location </label>
                        <input type="text" id="location" name="location"  onchange="validateForm('registration_form', this.id)"/><br/>
                        <span id="location_validation"></span>
                        </div>

                        <div class="submit">
                        <input type="submit" value="submit" />
                        </div>
                        </fieldset>
                    </form>
                </div>
            </div>
            <div id="footer">
                Photo World © 2011<br/>
                <a href="#" onclick="switchCss()">Switch CSS</a>
                <a href="#">About</a>
                <a href="#">Terms</a>
                <a href="#">Help</a>
            </div>
        </div>
    </body>

</html>